package com.zc.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import com.zc.service.StatisticsService;
import com.zc.vo.CountVo;

@Controller
public class StatisticsController {
	@Autowired
	StatisticsService statisticsService;

	/**
	 * 占比分析 view
	 */
	@RequestMapping("/zbfx")
	public String zbfx(Model model) {
		CountVo countVo = statisticsService.selectCount();
		model.addAttribute("countVo", countVo);
		return "zbfx/zbfx";

	}
}
